package design.mode.composite.item3;

/**
 * @author ZhongMingde on 2021/11/4
 */

public class Employee extends HumanResource{

  public Employee(long id,double salary) {
    super(id);
    this.salary = salary;
  }

  @Override
  public double calculateSalary() {
    return salary;
  }
}
